Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build XDP depending on XRT component being built #8695

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stsoe
Copy link
Collaborator

@stsoe stsoe commented Jan 15, 2025

Problem solved by the commit

Change how XDP is built in XRT. Infer XDP build options based on which component is being built.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

XDP is included in the npu and alveo components and the in the legacy xrt component, but it is being built differently depending on the component. XDP is excluded from XRT's base component.

How problem was solved, alternative solutions (if any) and why they were rejected

This PR builds on #8691. It includes XDP in npu, alveo, and legacy xrt components, but excludes XDP from base. Compile flags for XDP are based on the component. XDP_CLIENT_BUILD_CMAKE is now an internal configuration variable for XDP.

There are no visible changes in this PR. However, anything invoking CMake with XDP_CLIENT_BUILD_CMAKE will be affected and must change to ensure that XRT is building the NPU component by adding -DXRT_NPU when invoking CMake.

Change how XDP is built in XRT.  Infer XDP build options based
on which component is being built.

XDP is included in the npu and alveo components and the in the legacy
xrt component, but it is being built differently depending on the
component. XDP is excluded from XRT's base component.

This PR infers compile flags for XDP based on the component.
XDP_CLIENT_BUILD_CMAKE is now an internal configuration variable for
XDP.

There are no visible changes in this PR.  However, anything invoking
CMake with XDP_CLIENT_BUILD_CMAKE will be affected and must change to
ensure that XRT is building the NPU component by adding `-DXRT_NPU`
when invoking CMake.

Signed-off-by: Soren Soe <[email protected]>
@stsoe stsoe requested review from IshitaGhosh and removed request for rozumx January 15, 2025 01:28
The variable that define what components of XRT to build must be
set up always otherwise pieces of XRT will fail to build.

Simplify how runtime_src/xdp decides to build legacy XRT. XRT_ALVEO
is inferred for legacy XRT so no need to check for XRT_XRT.

Signed-off-by: Soren Soe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant